<#include "/common/head.ftl">
<@head>

<div class="container">
<form >
<fieldset disabled>
  <div class="form-group">
    <label for="bankName1">银行名称</label>
    <input type="text" class="form-control" id="bankName1" placeholder="银行名称"  name="bankName" value="${info.bankName!}">
  </div>
  <div class="form-group">
    <label for="bankAddr1">支行名称</label>
    <input type="text" class="form-control" id="bankAddr1" placeholder="支行名称"  name="bankAddr" value="${info.bankAddr!}">
  </div>
  <div class="form-group">
    <label for="bankUser1">收款姓名</label>
    <input type="text" class="form-control" id="bankUser1" placeholder="姓名"  name="bankUser" value="${info.bankUser!}">
  </div>
  <div class="form-group">
    <label for="bankCard1">收款卡号</label>
    <input type="text" class="form-control" id="bankCard1" placeholder="卡号"  name="bankCard" value="${info.bankCard!}">
  </div>

<div class="form-group">
    <label for="totleMoney1">当前余额</label>
    <input type="number" class="form-control" id="totleMoney1" placeholder="当前余额"  value="${money!}"  >
  </div>
 </fieldset>
  <div class="form-group">
    <label for="totleMoney">提现金额</label>
    <input type="number" class="form-control" id="totleMoney" placeholder="充值金额"  name="totleMoney"  >
  </div>

   <button type="submit" class="btn btn-default">确定充值</button>
</form>

 
</div>

    
<@js>
//-------

    $("#type").on('input',function(e){
       var type=$(this).val();

 $('.rechargeType').hide();
       $('.'+type).show();
    });


$("form").submit(function(e){
    e.preventDefault();
	$.post("/api/money/withdraw", $("form").serialize(),function(data){
          console.log(data); //  2pm
         if(data.status==200){
			window.location.href='/';
         }
            alert(data.message);     
         }, "json");
    
});

          
          

</@js>

</@head>